home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-18 | 3.0 KB | 85 lines | [TEXT/KAHL] |
-
-
- Show Globals 1.0 © Copyright 1989 Apple Computer, Inc.
-
- Programmed by Ricardo Batista, Apple Integrated Systems
-
- About...
-
- Show Globals is a MultiFinder compatible application that can read MPW
- assembler files (could be fake) and remember global variable declarations
- in the code, this is done so you can watch the values of your variables
- change in a scrollable window. The comments after a semicolon are also
- shown in the scrollable window.
-
- Notice that even if your code is written in C or Pascal you can easily
- create a dummy assembly file containing the declaration of your variables
- as in assembly, no need to know assembly other than how to declare storage.
-
- I use this utitlity mainly to debug drivers and code resources such as
- an atlk code resource.
-
-
- When the program starts, it wants you to select a source file, ussually an
- asembly source file, the file is read and the program finds the first
- declaration of the label 'DDATA' at the beginning of a line; from
- then on all declarations are calculated until an empty line is found.
- The address of the start of the data in memory can be entered in the program
- by choosing the Set Start Address item from the file menu, or can be hardcoded
- in the file by adding DDATA=address to the label, an indirection can be obtained
- by adding an asterisk, hexadecimal values must have a dollar sign in front and
- are only allowed in the DDATA label.
- Examples:
-
- DDATA ; no specific begin of data, user will provide start address at runtime
- DDATA=$910 ; data begins at address 910 hexadecimal (CurApName in this case)
- DDATA=2320 ; data begins at address 2320 decimal ($910 CurApName)
- DDATA=*$2d8 ; pointer to begin of data is contained in $2d8 (ABusVars in this case)
- DDATA=*728 ; pointer to begin of data is contained in 728 (ABusVars in this case)
-
- data types know are:
-
- dc.b value
- dc.w value
- dc.l value
-
- dcb.b value, value, ...,value
- dcb.w value, value, ...,value
- dcb.l value, value, ...,value
-
- Sorry, no records ...
- The limit of declarations is 250, I have used this tool succesfully with about
- 80 declarations. I recommend you that you have a signature as part of your
- variables to make sure that you are looking at the right memory space.
-
- A few working examples....
-
-
- DData=*$2d8
- dc.b 0 ; AppleTalk Node address
- dc.b 0 ; destination node, RHA begin
- dc.b 0 ; source node
- dc.b 0 ; lap type
- dc.b 0 ; hop count and two bits of packet len
- dc.b 0 ; low byte of packet len
- dcb.b 19,0 ; RHA, dest, source, lap type
- dc.b 0 ; sysABridge (current bridge)
- dc.w 0 ; sysNetNum (our network number)
- dc.w 0 ; vSCCEnable, value to reenable SCC interrupts
- dc.l 0 ; ATPVars (pointer to ATP variables)
-
-
-
- DData=$900
- dc.w 0 ; current application reference number
- dc.b 0 ; launch flag
- dc.b 0 ; ?
- dc.l 0 ; current A5
- dc.l 0 ; current stack base
- dc.l 0 ; ?
- dcb.b 32,0 ; current application name
- dc.l 0 ; handle to code 0 resource at launch
- dc.w 0 ; offset from current a5 to start of jump table
- dc.w 0 ; current page 2 vide and sound configuration
-
-